package rs.ac.mbs2.entiteti;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Embeddable;
@Embeddable
public class Tacka implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	//@Column
	//private int id;
	@Column
	private float x;
	@Column
	private float y;
	@Column
	private String adresa;
	
	//get set
	/*public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}*/
	public float getX() {
		return x;
	}
	public void setX(float x) {
		this.x = x;
	}
	public float getY() {
		return y;
	}
	public void setY(float y) {
		this.y = y;
	}
	public String getAdresa() {
		return adresa;
	}
	public void setAdresa(String adresa) {
		this.adresa = adresa;
	}
	public Tacka(int id, float x, float y, String adresa) {
		super();
		//this.id = id;
		this.x = x;
		this.y = y;
		this.adresa = adresa;
	}
	
	
	@Override
	public String toString() {
		return "Tacka [x=" + x + ", y=" + y + ", adresa="
				+ adresa + "]";
	}
}
